//
//  Caculator.m
//  4-函数式编程思想
//
//  Created by J on 16/2/18.
//  Copyright © 2016年 J. All rights reserved.
//

#import "Caculator.h"

@implementation Caculator



- (instancetype)add:(NSUInteger (^)(NSUInteger number))block{
    
   _result = block(_result);
    return self;
}

-(instancetype)equal:(BOOL (^)(NSInteger ))block{
    
    
  _isEqual =  block(_result);
    return self;
    
}
@end
